package com.hushao.lims.weblims.repository;

import com.hushao.lims.weblims.domain.EquipmentStorage;
import com.hushao.lims.weblims.domain.TeacherInfo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author 930588706
 * @date 18/1/22
 * 器材入库
 */
public interface EquipmentStorageRepository extends JpaRepository<EquipmentStorage,Long> {
    /**
     * 根据器材名称查询个人器材入库集合（分页）
     * @param teacher
     * @param equipmentName
     * @param pageable
     * @return
     */
    Page<EquipmentStorage> findByTeacherInfoAndEquipmentInfo_EquipmentNameLike(TeacherInfo teacher, String equipmentName, Pageable pageable);

    Page<EquipmentStorage> findByEquipmentInfo_EquipmentNameLikeAndAndEquipmentStorageStateLike(String equipment, String state, Pageable pageable);
}
